.app-main {
  margin: 0 auto;

  max-width: 1920px;

}

.the-header {
  margin-bottom: 24px;
  height: 80px;
  background: #fff;
  line-height: 80px;
  text-align: center;
  font-size: 18px;
  font-family: PingFang SC-Semibold, PingFang SC;
  font-weight: 600;
  color: #1D1F23;
}

.navbar {
  margin: 24px;
  padding: 20px 24px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  border-radius: 12px;
  .search {
    background-color: #F5F5F5;
    width: 60%;
    line-height: 30px;
    padding-left: 15px;
  }
  .btns {
    display:table; 
    word-spacing:-1em;

    a {
      display: inline-block;
      line-height: 30px;
      padding: 0 20px;
      background-color: #F5F5F5;
      word-spacing:0;
      &:first-child {
        border-top-left-radius: 4px;
        border-bottom-left-radius: 4px;
      }
      &:last-child {
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;        
      }
      &.active {
        background-color: #0077FA;
        color: #fff;
      }
    }
  }
}

.l_container {
  padding: 20px 24px;
  background: #fff;
  box-shadow: 0px 6px 26px -4px rgba(0, 0, 0, 0.06);
  opacity: 1;
  border-radius: 12px;

  .l_c_header {
    margin-bottom: 20px;
    height: 24px;
    font-size: 16px;
    font-family: PingFang SC-Semibold, PingFang SC;
    font-weight: 600;
    color: #1D1F23;
    line-height: 24px;
  }
}

.device-state {
  padding: 0 24px;
  display: grid;
  grid-template-columns: 34% 1fr;
  grid-column-gap: 24px;

  .device-state-number {
    height: 216px;

    .device-circle-list {
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 132px;

      .device-circle-item {
        height: 132px;
        width: 90px;

        .device-circle-item-chart {
          width: 90px;
          height: 90px;
        }

        .device-circle-item-info {
          margin-top: 10px;
          height: 20px;
          font-size: 14px;
          font-family: PingFang SC-Regular, PingFang SC;
          font-weight: 400;
          color: rgba(28, 31, 35, 0.6);
          line-height: 20px;
          text-align: center;
        }
      }
    }
  }

  .device-state-online {
    height: 216px;

    .device-line-list {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      grid-template-rows: 30px 30px;
      grid-column-gap: 30px;
      grid-row-gap: 30px;
      height: 132px;

      .device-line-item {
        height: 60px;

        .device-line-item-info {
          display: flex;
          justify-content: space-between;
          align-items: center;
          margin-bottom: 4px;
          height: 20px;

          .device-line-item-info-left {
            width: 50%;
            height: 20px;
            font-size: 14px;
            font-family: PingFang SC-Regular, PingFang SC;
            font-weight: 400;
            color: rgba(28, 31, 35, 0.6);
            line-height: 20px;
          }

          .device-line-item-info-right {
            height: 20px;
            line-height: 20px;

            .online {
              font-size: 14px;
              color: #1D1F23;
              font-weight: bolder;
            }

            .total {
              font-size: 12px;
              color: #1C1F23;
            }
          }
        }

        .device-line-item-progress {
          height: 8px;

          .progress-container {
            width: 100%;
            height: 8px;
            border-radius: 4px;
            background: rgba(46, 50, 56, 0.09);
            overflow: hidden;

            .progress-main {
              width: 50%;
              height: 8px;
              border-radius: 4px;


              &#the-light {
                background: #FBDA32;
              }

              &#the-havc {
                background: #3295FB;
              }

              &#the-other {
                background: #ED487B;
              }

              &#the-curtain {
                background: #27C2B0;
              }

              &#the-sensor {
                background: #885BD2;
              }
            }
          }
        }
      }
    }
  }
}

/*** 底部 图表 ***/
.device-chart {
  display: grid;
  grid-template-columns: 800px 1fr;
  grid-column-gap: 24px;
  padding: 24px;
}

.chart-left-container {
  margin-bottom: 24px;
  width: 800px;
  height: 360px;
}

.chart-right-container {
  .tabbar  {
    .tabbar-inner{
      background-color: #F5F5F5;
      border-radius: 17px;
      line-height: 34px;   
      margin-bottom: 10px; 
      li {
        flex: 1;
        text-align: center;
        border-radius: 17px;
        &.active {
          background-color: #0077FA;;
          a {
            color: #fff;
          }
        }
      }
      a {
        display: inline-block;
        line-height: 34px;
        width: 100%;
      }
    }
    .auto-width {
      width: auto;
      margin: 0;
      
    }
  }
  
}

/***END***/


.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;

  .header-tabs {
    display: flex;
    justify-content: flex-end;

    width: 50%;
    height: 20px;
    margin-bottom: 20px;
  }

  .header-tabs-item {
    padding: 0 8px;
    height: 20px;
    line-height: 20px;
    font-size: 14px;
    font-family: PingFang SC-Semibold, PingFang SC;
    font-weight: 600;
    color: rgba(28, 31, 35, 0.35);
    cursor: pointer;
  }

  .header-tabs-line {
    height: 20px;
    width: 1px;
    box-shadow: inset 0px 0px 0px 1px #E5E5E5;
  }
}

.chart-left-main {

  width: 752px;
  height: 290px;

  .work-chart {
    width: 752px;
    height: 290px;
  }
}

.chart-right-main {
  width: 100%;

  .behavior-chart {
    width: 100%;
    height: 700px;
  }
}



.shadow {
  width: 90px;
  height: 90px;
  position: relative;
  border-radius: 50%;
  background: conic-gradient(#3BB346 0%, #3BB346 50%, #3BB346 75%, #1d335c 75%, #1d335c 100%);
  mask: radial-gradient(transparent 40px, #000 40px);
  -webkit-mask: radial-gradient(transparent 40px, #000 40px);
}

.shadow::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 0px;
  width: 10px;
  height: 10px;
  background: #3BB346;
  border-radius: 50%;
}

.shadow::after {
  content: '';
  position: absolute;
  left: -1px;
  top: 40px;
  width: 8px;
  height: 8px;
  background: #3BB346;
  border-radius: 50%;
}